package com.mvc.cms.dao.main;

import java.util.List;

import com.mvc.cms.entity.main.CmsUser;
import com.mvc.common.hibernate3.Updater;
import com.mvc.common.page.Pagination;

/**  
  * 文件名：用户dao接口 
  *  
  * 内容信息：  
  * 日期：2013-6-11  
  * Copyright 黑狼  Corporation 2013   
  * 版权所有  
  *  
  */ 
public interface CmsUserDao{
	public Pagination getPage(String username, String email, Integer siteId,
			Integer groupId, Boolean disabled, Boolean admin, Integer rank,
			int pageNo, int pageSize);
	
	public List getList(String username, String email, Integer siteId,
			Integer groupId, Boolean disabled, Boolean admin, Integer rank);

	public List<CmsUser> getAdminList(Integer siteId, Boolean allChannel,
			Boolean disabled, Integer rank);

	public CmsUser findById(Integer id);

	public CmsUser findByUsername(String username);

	public int countByUsername(String username);
	
	public int countMemberByUsername(String username);

	public int countByEmail(String email);

	public CmsUser save(CmsUser bean);

	public CmsUser updateByUpdater(Updater<CmsUser> updater);

	public CmsUser deleteById(Integer id);
}